<?php
//备用.
        if ($sender->isAjaxLinkClicked('goIndex'))
        {
            $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
            $updateControl->addRenderView('showView', $viewName, array());
        }

        if ($sender->isAjaxLinkClicked('introduce'))
        {
            $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
            $updateControl->addRenderView('showView', $viewName, array());
        }
        if ($sender->isAjaxLinkClicked('clubArticle'))
        {
            $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
            $updateControl->addRenderView('showView', $viewName, array());
        }
          if ($sender->isAjaxLinkClicked('introduceArticle'))
        {
            $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
            $updateControl->addRenderView('showView', $viewName, array());
        }
        if ($sender->isAjaxLinkClicked('introduceList'))
        {
            $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
            $listName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('listName');
            $eventList = array();
            $eventTable = new BAEventSheet();
           // $event= $eventTable->getList();
            if($listName=='teacher')
            {
                $eventList = $eventTable->getList(array('name'=>'teacher'));
            }
            else if($listName == 'student')
            {
                $eventList = $eventTable->getList(array('name'=>'student'));
            }
            $updateControl->addRenderView('showView', $viewName,
                    array('eventList' => $eventList));
        }